#include <stdio.h>
#include <pthread.h>
#include "my_thread.h"
#include "dbg_trace.h"
#include "my_types.h"
//-------------------------------
#include "likou_algorithm.h"


/**********************************************************************
							变量区
***********************************************************************/
MY_U8 g_u8Array[32] = 
{
	210, 211, 212, 213, 214, 215, 216, 217,
	110, 111, 112, 113, 1114, 115, 116, 117,
	110, 111, 112, 113, 114, 115, 116, 117,
	10, 11, 12, 13, 14, 15, 16, 17,
};
/**********************************************************************/


/**********************************************************************
							函数区
***********************************************************************/
/**********************************************************************/


//分析main入口参数
static void AnalyzeMainArg(int argc, char *argv[])
{
	MY_U8 i = 0;
	
	DBG_TRACE_INFO("argc = %d", argc);
	for(i=0; i<argc; i++)
		DBG_TRACE_INFO("argv[%d] = %s", i, argv[i]);
}


//main函数入口
int main(int argc, char *argv[])
{	
	MY_U8 	pTestBuf[] = "awlkkopp";
	MY_U16	ret = 0;
	
	AnalyzeMainArg(argc, argv);
	PrintThreadInfo("Main thread:");
	CreateMyThread();
	ret = CalcStrLen_WhithoutRepeat(pTestBuf, strlen(pTestBuf));
	DBG_TRACE_INFO("%s --> ret = %d", __func__, ret);
	
	//主线程循环
	while(1)
	{
		g_ThreadRunInfo.u16ConnectCnt += 1;
		DBG_TRACE_INFO("Main Thread Running u16ConnectCnt = %d!!", g_ThreadRunInfo.u16ConnectCnt);
		sleep(1);
	}
	
	return 0;
} 






